package 算法.base;

import java.io.IOException;

/**
 * @author lchenglong
 * @date 2021/1/14
 */
public class JavaInit {



}
 abstract class A {
    public void printMe() {
        System.out.println("I love vim");
    }
    public abstract void sayHello();
}
 class B extends A {
    @Override
    public void sayHello() {
        System.out.println("hello, i am child B");
    }
}

 class MyTest {
    public static void main(String[] args) throws IOException {
        A obj = new B();
        System.in.read();
        System.out.println(obj);
    }
}
